ci: STEP 1: ECR BuildKit cache for oe-core Docker image#348
Conversation
Use the peeled v2.0.1 commit instead of the annotated tag object so zizmor impostor-commit and ref-version-mismatch checks pass. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Remote Caching: For CI/CD environments with ephemeral runners, BuildKit supports external backends to persist cache between builds: Registry: Push/pull cache layers to/from a container registry using --cache-from and --cache-to flags. Use mode=max with remote cache exports to include intermediate build stages in the cache, not just final layers. |
Summary
Dockerfilebuild in ECR via BuildKit (cache-from/cache-to) whenOT3_OE_DOCKER_ECR_REPOSITORY_{DEV,PROD}is set.aws-actions/amazon-ecr-loginto the peeled v2.0.1 commit SHA (zizmor-safe).Test plan
docker build